package com.itheima.tlias.controller;

import com.itheima.tlias.common.result.Result;
import com.itheima.tlias.service.TestInsertDeptServiceOne;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestTranscationController {
    @Resource
    TestInsertDeptServiceOne one;

    @GetMapping
    public Result test() {
        int i = one.insertDeptOne();
        return Result.success(i);
    }
}
